<template>
  <edu-page-tabs :tab-list="xTabs" />
</template>

<script>
import EduPageTabs from '@public/template/tabs/page_tabs.vue';
export default {
  components: {
    EduPageTabs
  },
  props: {
    tabs: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  data() {
    return {
      defaultTabs: [
        // {
        //   title: '课程卡',
        //   uri: '/market/coupon/courseCard/index',
        //   meta: {
        //     permission: 'market.coupon.coursecard.list'
        //   }
        // },
        // {
        //   title: '优惠券',
        //   uri: '/market/coupon/couponCard/index',
        //   meta: {
        //     permission: 'market.coupon.couponcard.list'
        //   }
        // },
        // {
        //   title: '打折卡',
        //   uri: '/market/coupon/discountCard/index',
        //   meta: {
        //     permission: 'market.coupon.discountcard.list'
        //   }
        // },
        {
          title: '活动券',
          uri: '/market/ticket/list',
          meta: {
            permission: 'market.ticket.list'
          }
        }
      ]
    };
  },
  computed: {
    xTabs() {
      return [...this.defaultTabs, ...this.tabs];
    }
  }
};
</script>
